<?php

namespace Twoir\Anroute\Attributes;

use Attribute;

/**
 * 注解中间件 支持类或方法
 */
#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)]
class Middleware
{
    public function __construct(
        public string $name
    ) 
    {}
}